package com.topgay.domain;

public class Reply {

	private int replyNo;	//restep 
	private int cscenterNo;	//refamily
	private String id;
	private String nickname;    
	private int relevel;	//댓글 순서 그룹
	private String content;
	private String creDate;
	
	public Reply() {
	}

	public Reply(int replyNo, int cscenterNo, String id, String nickname,
			int relevel, String content, String creDate) {
		super();
		this.replyNo = replyNo;
		this.cscenterNo = cscenterNo;
		this.id = id;
		this.nickname = nickname;
		this.relevel = relevel;
		this.content = content;
		this.creDate = creDate;
	}

	public int getReplyNo() {
		return replyNo;
	}

	public void setReplyNo(int replyNo) {
		this.replyNo = replyNo;
	}

	public int getCscenterNo() {
		return cscenterNo;
	}

	public void setCscenterNo(int cscenterNo) {
		this.cscenterNo = cscenterNo;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public int getRelevel() {
		return relevel;
	}

	public void setRelevel(int relevel) {
		this.relevel = relevel;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCreDate() {
		return creDate;
	}

	public void setCreDate(String creDate) {
		this.creDate = creDate;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + ((creDate == null) ? 0 : creDate.hashCode());
		result = prime * result + cscenterNo;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((nickname == null) ? 0 : nickname.hashCode());
		result = prime * result + relevel;
		result = prime * result + replyNo;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Reply other = (Reply) obj;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (creDate == null) {
			if (other.creDate != null)
				return false;
		} else if (!creDate.equals(other.creDate))
			return false;
		if (cscenterNo != other.cscenterNo)
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (nickname == null) {
			if (other.nickname != null)
				return false;
		} else if (!nickname.equals(other.nickname))
			return false;
		if (relevel != other.relevel)
			return false;
		if (replyNo != other.replyNo)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Reply [replyNo=" + replyNo + ", cscenterNo=" + cscenterNo
				+ ", id=" + id + ", nickname=" + nickname + ", relevel="
				+ relevel + ", content=" + content + ", creDate=" + creDate
				+ "]";
	}
	
}
